package com.uls.ldcm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 合同信息对象 lb_contracts
 * 
 * @author gw
 * @date 2024-10-31
 */
public class Contracts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 合同唯一标识 */
    private Long contractId;


    /** 劳务人员姓名 */
    @Excel(name = "劳务人员姓名")
    private String name;

    /** 合同开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 合同结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "合同结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 薪资方案ID */
    @Excel(name = "薪资方案ID")
    private Long salaryschemeId;

    private String salaryschemeName;

    /** 合同条款文件 */
    @Excel(name = "合同条款文件")
    private String contractTerms;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public String getSalaryschemeName() {
        return salaryschemeName;
    }

    public void setSalaryschemeName(String salaryschemeName) {
        this.salaryschemeName = salaryschemeName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setSalaryschemeId(Long salaryschemeId) 
    {
        this.salaryschemeId = salaryschemeId;
    }

    public Long getSalaryschemeId() 
    {
        return salaryschemeId;
    }
    public void setContractTerms(String contractTerms) 
    {
        this.contractTerms = contractTerms;
    }

    public String getContractTerms() 
    {
        return contractTerms;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("contractId", getContractId())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("salaryschemeId", getSalaryschemeId())
            .append("contractTerms", getContractTerms())
            .append("createBy", getCreateBy())
            .append("createdAt", getCreatedAt())
            .append("updateBy", getUpdateBy())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
